body {
    /* background: #f2f2f2; */
    background: #282c34;
}

.frame {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 400px;
    height: 400px;
    margin-top: -200px;
    margin-left: -200px;
    border-radius: 2px;
    box-shadow: 1px 2px 10px 0px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    background: #eaeaf0;
    color: #fff;
    font-family: 'Open Sans', Helvetica, sans-serif;
}

.center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.loader {
    position: relative;
    display: flex;
}

.loader span {
    position: relative;
    width: 250px;
    height: 250px;
    background: #eaeaf0;
    border: 6px solid #eaeaf0;
    border-radius: 50%;
    box-shadow: -8px -8px 15px rgba(255, 255, 255, 1),
        8px 8px 25px rgba(0, 0, 0, 0.15);
    overflow: hidden;

    &:before {
        content: '';
        position: absolute;
        border-radius: 50%;
        inset: 0;
        box-shadow: inset 10px 10px 20px rgba(0, 0, 0, 0.5),
            inset -5px -5px 15px rgba(255, 255, 255, 1);
    }

    &:after {
        content: '';
        position: absolute;
        background: #eaeaf0;
        border: 3px solid #eaeaf0;
        border-radius: 50%;
        inset: 40px;
        box-shadow: -8px -8px 25px rgba(255, 255, 255, 1),
            8px 8px 25px rgba(0, 0, 0, 0.25),
            inset 3px 3px 10px rgba(0, 0, 0, 0.15),
            inset -1px -1px 15px rgba(255, 255, 255, 1);
    }

    i {
        position: absolute;
        inset: 0;
        border-radius: 50%;
        background: linear-gradient(#42e6ff, #98ff98, #ffeb3b);
        animation: rotate 2s linear infinite;
        filter: blur(5px);
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
